package com.hrhr74.penguinstream.constant;

public class UserConstant {
    //用户角色
    public static final String EMPLOYEE = "employee";

    public static final String CUSTOMER = "customer";

    public static final String ADMIN = "admin";

    public static final String MERCHANT = "merchant";

    //角色等级
    public static final Long LEVEL1 =  1L;
    public static final Long LEVEL2 = 2L;
    public static final Long LEVEL3 = 3L;
    public static final Long LEVEL4 = 4L;
    public static final Long LEVEL5 = 5L;

    //用户登录设置

    public static final String LOGIN_KEY = "login:";

    public static final Long TTL = 320000L;

    public static final String USERNAME_LOGIN = "username";
    public static final String Phone_LOGIN = "phone";
    public static final String Email_LOGIN = "email";

    public static final Integer CODE_LENGTH = 6;
    public static final String CODE_KEY = "code:";
    public static final Long CODE_TTL = 300L;

    //用户修改常量
    public static final String PASSWORD_EDIT = "password";
    public static final String PHONE_EDIT = "phone_edit";
    public static final String EMAIL_EDIT = "email";
    public static final String NORMAL_EDIT = "info";
    public static final String ADMIN_EDIT = "admin";
}
